<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
    <title>{{.table.TableComment}}</title>
    <jsp:include page="/common/common.jsp"/>
</head>
<body style="background:#f9f9f9;" data-spy="scroll" data-target=".left-navbar">
<div class="top-title">
    <div class="title-box">
        <div class="content-head-title">
            <i class="mark-img"></i><span class="label">当前位置：{{.table.TableComment}}明细查看</span>
        </div>
    </div>
</div>
<div class="main-content">
    <div class="right-content">
        <div id="myView" >{{range .keyColumnList}}
            <input type="hidden" name="{{.PascalName}}" id="{{.PascalName}}" value="{{ .PascalName | printf "${data.%s}" }}"/>{{end}}
            <div class="panel">
                <div  id="basicInfo" class="inner-panel">
                    <div class="panel-heading">
                        <span class="label">基本信息</span>
                        <i class="fold"></i>
                    </div>
                    <div class="panel-bodying">
                        <div class="information-body">
                            <ul class="information">{{range .columnList}}{{if not .IsPrimary}}
                               <li class="row-li">
                                    <label>{{.ColumnComment}}：</label>
                                    <div class="list-info">
                                       {{ .PascalName | printf "${data.%s}" }}
                                    </div>
                               </li>{{end}}{{end}}
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="left-content">
        <div class="left-navbar">
            <ul class="left-nav nav">
                <li class="active"><a href="#basicInfo"><i class="icons-arrow"></i>基本信息</a></li>
            </ul>
            <button class="big-btn big-change radius5" type="button" onclick="change('{{ .firstKeyColumn | printf "${data.%s}" }}');"><i class="custom-save"></i>变更</button>
            <button class="big-btn big-return radius5" type="button" onclick="back();"><i class="custom-return"></i>返回</button>
        </div>
    </div>
</div>
<script type="text/javascript" src="${contextPath}/{{.domainname}}/{{.Lowername}}/controller.js?v=${cssVersion}"></script>
</body>
</html>
